{{$ver := 45}}

{{set . "title" "Home"}}

{{template "header.html" .}}

<div class="container">
	<div class="row">
		<form enctype="multipart/form-data" id="uploadprodform" action="/uploadproduct" method="post"> 
			<div class="form-group"> 
				<label for="item-name-input">商品名称</label> 
				<input type="text" class="form-control" id="item-name-input" name="name" placeholder="商品名称"> 
			</div> 
			<div class="form-group"> 
				<label for="item-name-intro">商品介绍</label> 
				<textarea class="form-control" rows="3" id="item-name-intro" name="intro"></textarea> 
			</div> 
			<div class="form-group"> 
				<label for="item-name-spec">商品规格</label> 
				<textarea class="form-control" rows="3" id="item-name-spec" name="spec"></textarea> 
			</div> 
			<div class="form-group"> 
				<label for="item-price">价格（元）</label> 
				<textarea class="form-control" rows="3" id="item-price" name="price"></textarea> 
			</div> 
			<div class="form-group"> 
				<label for="item-num">数量</label> 
				<textarea class="form-control" rows="3" id="item-num" name="num"></textarea> 
			</div> 
			<div class="form-group"> 
				<label for="main-sm-img-input">商品小图 尺寸100*100</label> 
				<input type="file" id="main-sm-img-input" name="main-sm-img" placeholder="选择文件"> 
			</div> 
			<div class="form-group"> 
				<label for="main-img-input">商品主图 尺寸1000*800</label> 
				<input type="file" id="main-img-input" name="main-img" placeholder="选择文件"> 
			</div> 
			<div class="form-group"> 
				<label for="sub-img1-input">商品副图1 尺寸宽1000，高不限</label> 
				<input type="file" id="sub-img1-input" name="sub-main-img1" placeholder="选择文件"> 
			</div> 
			<div class="form-group"> 
				<label for="sub-img2-input">商品副图2 尺寸宽1000，高不限</label> 
				<input type="file" id="sub-img2-input" name="sub-main-img2" placeholder="选择文件"> 
			</div> 
			<div class="form-group"> 
				<label for="sub-img3-input">商品副图3 尺寸宽1000，高不限</label> 
				<input type="file" id="sub-img3-input" name="sub-main-img3" placeholder="选择文件"> 
			</div> 
  
              <input type="submit" class="pull-right btn btn-danger" value="提交商品" /> 
            </form> 
            </div> 

            <div class="row"> 
            	<div class="col-md-1"> 
            		<span id="main-sm-img-input-pre-span">商品小图  </span> 
	                <img id="main-sm-img-input-pre" class="thumbnail img-responsive" src="" title="商品主图"> 
	            </div> 
	            <div class="col-md-3"> 
            		<span id="main-img-input-pre-span">商品主图 尺寸1000*800</span> 
	                <img id="main-img-input-pre" class="thumbnail img-responsive" src="" title="商品主图"> 
	            </div> 
	            <div class="col-md-2"> 
            		<span id="main-img-input-pre-span">商品副图1 尺寸宽1000，高不限</span> 
	                <img id="sub-img1-input-pre" class="thumbnail img-responsive" src="" title="商品副图1"> 
	            </div> 
	            <div class="col-md-2"> 
            		<span id="main-img-input-pre-span">商品副图2 尺寸宽1000，高不限</span> 
	                <img id="sub-img2-input-pre" class="thumbnail img-responsive" src="" title="商品副图2"> 
	            </div> 
	            <div class="col-md-2"> 
            		<span id="main-img-input-pre-span">商品副图3 尺寸宽1000，高不限</span> 
	                <img id="sub-img3-input-pre"- class="thumbnail img-responsive" src="" title="商品副图3"> 
	            </div> 
	        </div>

</div>

<script src="/public/js/pc/additem.js?ver={{$ver}}"></script>
<script src='public/js/sidebar.js?ver={{$ver}}' type="text/javascript"></script>

{{template "footer.html" .}}